/**
 * 微信工具类
 * @author hejiacheng
 * @date 2021-12-3
 */


let shareUtil = {}

/**
 * 开启分享功能
 */
shareUtil.startShare = function () {
  console.log('获取openid')
  // 开启微信内置分享功能
  wx.showShareMenu({
    withShareTicket: true,
    menus: ['shareAppMessage', 'shareTimeline']
  })
}

shareUtil.shareToFreind = function(){
  return {
    title: "体重日志",
    path: "/pages/index/index",
    imageUrl: "/image/logo_share.png"
  }
}

export default shareUtil